package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiT_dingdan;
import cn.com.api.mapper.base.T_dingdanMapperBase;

//DAO
public interface ApiT_dingdanMapper extends T_dingdanMapperBase {

	public ApiT_dingdan findDingDan(ApiT_dingdan conditions);
	
	/**
	 * 查找订单的详情
	 * @param conditions
	 * @return
	 */
	public ApiT_dingdan  findDingDanInfo(ApiT_dingdan conditions);
	
	public List<ApiT_dingdan> batchDingDansInfo(ApiT_dingdan conditions);
	
	
	/**
	 * 更新订单
	 * @param newDingdan
	 * @return
	 */
	public int updateDingdan(ApiT_dingdan newDingdan);
	
	//根据订单titles查询订单详情
	public ApiT_dingdan findbytitles(String titles);
	
	/**
	 * 批量更新订单
	 * @param conditions
	 * @return
	 */
	public int batchUpdateDingdan(ApiT_dingdan conditions);
}
